import store from '../store';

export default development =>{
	if (development) {
		var flag1 = development.length === 0,flag2 = false;
		if(store.state.$development === 'dev'){
			flag2 = development.indexOf('dev') > -1
		}
		if(store.state.$development === 'prod'){
			flag2 = development.indexOf('prod') > -1
		}
		if (!flag1 && !flag2) {
			return false
		}
	}
	return true
}